package cn.lhl01.sys.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;


@Getter
@ToString //重写tostring
@AllArgsConstructor /*全餐构造方法*/
@Slf4j
public enum SidEnum {
	S10003(10003, "", ""),
	S50003(50003, "", ""),
	S110002(110002, PubUriConstant.AUTHENTICATED.gogogo222, ""),

	TEST(222, PubUriConstant.AUTHENTICATED.gogogo222, ""),


	;

	//转map使用
	public static final Map<Integer, SidEnum> map_EnumConstant = new HashMap<>();

	static {
		Arrays.stream(values()).forEach((enumConstant) -> {
			map_EnumConstant.put(enumConstant.getSid(), enumConstant);
		});
	}

	private final Integer sid;
	private final String url;
	//sid说明 ,干啥事的
	private final String desc;
}



